﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Web;

namespace FormInputProject.Models
{
    public class UserEntityConfiguation:EntityTypeConfiguration<User>
    {
        public UserEntityConfiguation()
        {
            this.Property(u => u.UserName).IsRequired().HasMaxLength(20);

            this.Property(u => u.UserPwd).IsRequired().HasMaxLength(20);
        }
    }
}